package com.eyas.business.service.userinfo;

import com.eyas.business.model.jdbcEntity.table.ChildrenInfo;
import com.eyas.business.model.jdbcEntity.table.UserInfo;
import com.eyas.business.model.pojo.userinfo.QueryPageParmDTO;
import com.eyas.business.model.pojo.userinfo.QueryPageResultDTO;
import com.eyas.business.model.pojo.webchat.UserRegisterDTO;
import com.eyas.core.model.page.PageResult;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @Auther: 王龙龙
 * @Date: 2019/3/7 17:47
 * @Description:
 */
public interface UserInfoService {
    /**
     * 教练信息列表
     * @param dto
     * @param page
     * @param limit
     * @return
     */
    public PageResult<QueryPageResultDTO> queryUserInfo(QueryPageParmDTO dto, int page, int limit);

    /**
     * 修改有效状态
     * @param coachid
     */
    public void changeValidflag(int coachid);

    public UserInfo getUserInfoById(int coachid);

    public void saveUserInfo(QueryPageParmDTO dto, HttpSession session);
    public UserInfo getUserInfoByOpenid(String openid);

    /**
     * 查询会员孩子信息
     * @param userid
     * @param page
     * @param limit
     * @return
     */
    public PageResult<ChildrenInfo> queryChildrenInfoByUser(Integer userid, int page, int limit);

    /**
     * 根据id查询孩子信息
     * @param cid
     * @return
     */
    public ChildrenInfo getChildInfoByCid(Integer cid);

    /**
     * 保存孩子数据
     * @param childrenInfo
     */
    public void saveChildrenInfo(ChildrenInfo childrenInfo);

    /**
     * 查询会员的孩子信息
     * @param userid
     * @return
     */
    public List<ChildrenInfo> queryChildrenInfoByUser(Integer userid);

    /**
     * app新增会员
     * @param dto
     * @param session
     */
    public void saveUserInfoPublic(UserRegisterDTO dto, HttpSession session);

    /**
     * 修改会员关注的课程信息
     * @param dto
     */
    public void changeClassFollow(QueryPageParmDTO dto);
}
